package com.wqi.chapter7;

public class Parcel2 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Parcel2 p = new Parcel2();
		p.ship("Tanss");
		Parcel2 q = new Parcel2();
		Parcel2.Contents c = q.cont();
		Parcel2.Destination d= q.to("dd");
	}
	
	public Destination to(String s){
		return new Destination("s");
	}
	public Contents cont(){
		return new Contents();
	}
	public void ship(String dest){
		Contents c = cont();
		Destination d = to(dest);
	}

	private class Contents{
		private int i = 11;
		public int value(){return i;}
	}
	class Destination{
		private String label;
		Destination(String whereTo){
			this.label = whereTo;
		}
		String readLabel(){return label;}
	}
}


